﻿<phone:PhoneApplicationPage 
    x:Class="AllenalaMente.Games.GamePage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:my="clr-namespace:AllenalaMente.Menu"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Landscape" Orientation="Landscape"
    mc:Ignorable="d" d:DesignHeight="480" d:DesignWidth="800"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot è la griglia radice in cui viene inserito tutto il contenuto della pagina-->
    <Grid x:Name="LayoutRoot" >
        <Grid.RowDefinitions>
            <RowDefinition Height="72"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
    <Grid.Background>
      <ImageBrush ImageSource="/AllenalaMente;component/Assets/Images/Backgrounds/SfondoGeneric.jpg"></ImageBrush>
    </Grid.Background>

    <Image Name="abc" Visibility="Collapsed" Source="/AllenalaMente;component/Assets/Images/Backgrounds/SfondoMath.jpg" Width="920" Height="480" Canvas.Left="0"/>

    <!--TitlePanel contiene il nome dell'applicazione e il titolo della pagina-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" >
            <TextBlock x:Name="PageTitle" Text="nome gioco" Foreground="White" Height="72" FontSize="50" Width="642" FontFamily="Comic Sans MS" />
        </StackPanel>

        <!--Banner-->
        <my:CarouselBanner HorizontalAlignment="Left" Margin="320,0,0,0" x:Name="carouselBanner" VerticalAlignment="Top" />
        
        <!--ContentPanel - inserire ulteriore contenuto qui-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="0,0,0,0">
            <Image Height="64" HorizontalAlignment="Left" Margin="10,-68,0,0" Name="imageGameMask" Stretch="Uniform" VerticalAlignment="Top" Width="68" Source="/AllenalaMente;component/Assets/Images/UI/Testa.png"/>
            <Image Height="60" HorizontalAlignment="Left" Margin="12,-66,0,0" Name="imageGame" Stretch="Uniform" VerticalAlignment="Top" Width="64" />
            <Button Content="win" Height="76" HorizontalAlignment="Left" Margin="704,-88,0,0" Name="buttonWin" VerticalAlignment="Top" Width="90" Click="buttonWin_Click" IsEnabled="False" Visibility="Collapsed" IsHitTestVisible="False" />
        </Grid>
    </Grid>
 
    <!--Codice di esempio che illustra l'utilizzo di ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Pulsante 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Pulsante 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="Voce di menu 1"/>
                <shell:ApplicationBarMenuItem Text="Voce di menu 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
